<?php
namespace Modules\Admin\Http\Controllers;
use Illuminate\Http\Request;
use Modules\Admin\Http\Controllers\CommonController;
class EmailController extends CommonController
{
	
	/**
	 * @name  配置页面
	 */
    public function index()
    {
		return view('admin::email.index');
    }
	/**
	 * @name  编辑数据处理
	 */
    public function store(Request $request)
    {
		if(email($request->all())){
			return response()->json([
				'status'=>1,
				'error' => '',
				'msg' => '发送成功！',
				'url'=>route('admin.email.index')
			],200);
		}else{
			return response()->json([
				'status'=>0,
				'error' => '发送失败！',
				'msg' => '',
				'url'=>route('admin.email.index')
			],201);
		}
    }
	
	
	
	
	
}
